<?php
require_once 'google-analytics-generator.class.php';	


class TestVariable implements IGoogleAnalyticsVariable {
	function getName() {
		return 'name123';
	}
	
	function getValue() {
		return 'value456';
	}
	
	function getOptScope() {
		return 3;
	}
}


$trackerId = $_GET['trackerId'];

$googleAnalyticsGenerator = new GoogleAnalyticsGenerator($trackerId);

$googleAnalyticsGenerator->setDebugModeActive(true);

?>
<html>
<head>
<title>Google analytics generator test</title>
</head>
<body>
<?php 
echo '<p>';
echo $googleAnalyticsGenerator->addVariable(new TestVariable());
echo '</p>';

echo $googleAnalyticsGenerator->generateSetupScriptTag();
echo $googleAnalyticsGenerator->generateVariablesScriptTag();

?>


</body>

</html>